import request from "@/utils/request";
export const getRolesListApi = () => {
  return request({
    method: "get",
    url: "/roles",
  });
};
export const editGetRoleListApi = (id, data) => {
  return request({
    method: "get",
    url: `/roles/${id}`,
    data,
  });
};
export const editRoleListApi = (id, data) => {
  return request({
    method: "put",
    url: `/roles/${id}`,
    data,
  });
};
export const delRoleListApi = (id) => {
  return request({
    method: "delete",
    url: `/roles/${id}`,
  });
};
export const addRoleListApi = (data) => {
  return request({
    method: "post",
    url: "/role",
    data,
  });
};
